Skip to main content
POST
/
api
/
external
/
v2
/
e-invoices
/
imports
[BETA] Import e-invoices
curl --request POST \
  --url https://app.pennylane.com/api/external/v2/e-invoices/imports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form type=customer \
  --form file=@example-file
{
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

multipart/form-data
file
file
required

The invoice file to be imported. Must be an e-invoice format.

type
enum<string>
required

The type of the invoice.

Available options:
customer,
supplier

Response

E-invoice imported successfully

url
string
required

The URL of the imported e-invoice. This can be used to access the document later.

I